home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-03-04 | 2.7 KB | 103 lines |
- #----------------------------------------------------------------------------
- #
- # NSSDC/CDF Borland C/C++ makefile for the CDF library
- #
- # Version 1.0, 14-Feb-92, Hughes STX
- #
- # Modification history:
- #
- # V1.0 14-Feb-92, A Warnock Original version.
- # J Love
- #
- #----------------------------------------------------------------------------
-
- #----------------------------------------------------------------------------
- # Macros.
- #----------------------------------------------------------------------------
-
- LIB= tlib
-
- MODEL= l
- CFLAGS= -c -m$(MODEL) -w -w-sig -w-cln -g1 -j1
-
- INCLUDEsys= $(CCLOC)\include
- INCLUDEcdf= ..\include
-
- VIO_h= $(INCLUDEcdf)/vio.h
- EPOCHU_h= $(INCLUDEcdf)/epochu.h
- DIRUTILS_h= $(INCLUDEcdf)/dirutils.h
- CDF_h= $(INCLUDEcdf)/cdf.h
- CDFDIST_h= $(INCLUDEcdf)/cdfdist.h $(CDF_h) $(EPOCHU_h) $(DIRUTILS_h)
- CDFLIB_h= $(INCLUDEcdf)/cdflib.h $(CDFDIST_h) $(VIO_h)
-
- #----------------------------------------------------------------------------
- # Which compiler to use? BCCX runs in protected mode, BCC runs in real mode.
- #----------------------------------------------------------------------------
-
- CC = bcc
- #CC = bccx
-
- #----------------------------------------------------------------------------
- # Targets/dependencies.
- #----------------------------------------------------------------------------
-
- all: libcdf.lib
-
- libcdf.lib: cdflib.obj cdf_c_if.obj cdfclo.obj cdfcon.obj cdfcre.obj \
- cdfdel.obj cdfget.obj cdf_i_if.obj cdflibx.obj \
- cdfope.obj cdfput.obj cdfrw.obj cdfsel.obj cdfstr.obj \
- cdfvalid.obj cdfxdr.obj vio.obj epochu.obj dirutils.obj
- del libcdf.lib
- $(LIB) libcdf +cdflib
- $(LIB) libcdf +cdflibx
- $(LIB) libcdf +cdfput
- $(LIB) libcdf +cdfope
- $(LIB) libcdf +cdf_c_if
- $(LIB) libcdf +cdfclo
- $(LIB) libcdf +cdfcon
- $(LIB) libcdf +cdfcre
- $(LIB) libcdf +cdfdel
- $(LIB) libcdf +cdfget
- $(LIB) libcdf +cdf_i_if
- $(LIB) libcdf +cdfrw
- $(LIB) libcdf +cdfsel
- $(LIB) libcdf +cdfstr
- $(LIB) libcdf +cdfvalid
- $(LIB) libcdf +cdfxdr
- $(LIB) libcdf +vio
- $(LIB) libcdf +epochu
- $(LIB) libcdf +dirutils
-
- .c.obj:
- $(CC) $(CFLAGS) -I$(INCLUDEsys) -I$(INCLUDEcdf) $<
-
- cdf_c_if.obj: $(CDFLIB_h)
- cdf_i_if.obj: $(CDFLIB_h)
- cdf_f_if.obj: $(CDFLIB_h)
- cdfclo.obj: $(CDFLIB_h)
- cdfcon.obj: $(CDFLIB_h)
- cdfcre.obj: $(CDFLIB_h)
- cdfdel.obj: $(CDFLIB_h)
- cdfget.obj: $(CDFLIB_h)
- cdflib.obj: $(CDFLIB_h)
- cdflibx.obj: $(CDFLIB_h)
- cdfope.obj: $(CDFLIB_h)
- cdfput.obj: $(CDFLIB_h)
- cdfrw.obj: $(CDFLIB_h)
- cdfsel.obj: $(CDFLIB_h)
- cdfstr.obj: $(CDFLIB_h)
- cdfvalid.obj: $(CDFLIB_h)
- cdfxdr.obj: $(CDFLIB_h)
- vio.obj: $(VIO_h)
- epochu.obj: $(CDFLIB_h)
- dirutils.obj: $(DIRUTILS_h)
-
- #----------------------------------------------------------------------------
- # Clean up.
- #----------------------------------------------------------------------------
-
- clean:
- del *.obj
- del *.lib
- del *.bak
-